﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Finance/FinanceMaster.master" AutoEventWireup="true" 
	CodeBehind="ImportWizard.aspx.cs" Inherits="WebApplication.Finance.ImportWizard" Theme="BaselineTheme" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:hyperlink ID="hypDevCreateAccount" runat="server" NavigateUrl="~/Finance/DevCreateAccount.aspx">Development - Create Account</asp:hyperlink><br />
<asp:hyperlink ID="hypDevAccountList" runat="server" NavigateUrl="~/Finance/DevAccountList.aspx">Development - Account List</asp:hyperlink><br />
<div class="BorderDiv" style="text-align:center; margin:auto; width:300px;">
<table class="DataTable">
	<tr>
		<td>Client:</td>
		<td><asp:DropDownList ID="cboClient" runat="server" 
				onselectedindexchanged="cboClient_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList></td>
	</tr>
	<asp:panel runat="server" ID="pnlTemplates">
	<tr>
		<td>Template:</td>
		<td><asp:DropDownList ID="cboTemplate" runat="server" ></asp:DropDownList>
			<asp:Label ID="lbNoTemplates" runat="server" Text="No Templates"></asp:Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td><asp:LinkButton ID="lnkNewTemplate" runat="server" 
				onclick="lnkNewTemplate_Click">Create a new template...</asp:LinkButton></td>
	</tr>
	</asp:panel>
	<asp:panel runat="server" ID="pnlUpload">
	<tr>
		<td colspan="2"><asp:FileUpload ID="FileUpload" runat="server" Width="100%" /></td>
	</tr>
	<tr>
		<td></td>
		<td><asp:Button ID="butImport" runat="server" Text="Import..." OnClick="ButImport_Click" /></td>
	</tr>
	</asp:panel>
</table>
</div>
<br />
<br />
	<asp:hyperlink runat="server" NavigateUrl="~/Finance/EditImportTemplates.aspx">Edit Import Templates</asp:hyperlink>
<br />
<p>TODO</p>
<div style="width:500px">
Create NI Forms – Create an excel spread sheet to enable upload of data – change this to an import wizard 
which allows you to save a template (maybe more than one) per client.  Make this available through that 
clients online login so that customers can upload their own debts. 	Replaced with import wizard<br />
<br />
Data Upload – takes excel spread sheet above and import it for client data. Replaced with Import wizard. <br />
Invoice Upload – Same as above but for invoice data. Replaced with import wizard<br /><br />

Once data is loaded an email is sent to the customer saying who has been allocated which debt.<br />

RETAIN THE IMPORT FILE<br/>
IF FILE IMPORTS BADLY, SEND TO FRL FOR IMPORTING AND NOTIFY CLIENT<br />


Specify data source – electronic / client web / manual.  <br /><br />

Also if a debt is passed in a currency that doesn’t have a bank account associated – an email is sent.  This can then be completed online / via an email form.<br />
De-duplication of data on key fields.<br />
Notify sales notified by email when new instructions are loaded for their clients.<br />
Show a box on the debt chase form (like a comment) that shows if this data was loaded from client information / gathered by collector / found by system.  Where found from.<br />
All reference numbers used on accounts to start with the frl referecne/ collectiors inititals / client reference number (if provided) <br />
When loading debt(s) the user will be asked to populate supporting information.  IE copy invoice, other supporting documentation.  Format of documentation.  Will need to clarify the actual possible supporting info from Gary.<br />
</div>

</asp:Content>
